<%-- 
    Document   : collection
    Created on : Mar 22, 2012, 12:34:19 PM
    Author     : lsf
--%>

<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<script type="text/javascript">


 var arr = new Array();
    arr[0] = new Array("Credit Card 102","Credit Card 124","Credit Card 145 ","Credit Card 1135 ","Credit Card 1356");
    arr[1] = new Array("Arpico Finance FD","Asian Fin FD Disclosure","cifl FD Application","fd Comm bank");

    function change(class_name)
    {
        var comboValue = class_name.value;
        document.forms["form"].elements["combo2"].options.length=0;
        for (var i=0;i<arr[comboValue].length;i++)
        {
            
            
            var option = document.createElement("option");
            option.setAttribute('value',i+1);
            option.innerHTML = arr[comboValue][i];
            document.forms["form"].elements["combo2"].appendChild(option);
        }
    }
    
</script>
<%--<%@page contentType="text/html" pageEncoding="UTF-8"%>--%>
<!DOCTYPE html>
<div id ="indexRightColumn">
    <div class="querryBox">

        <form action="queryOutput" name="form" method="post">
            <P align = "center">
                <h2>Select your Collection</h2> 
                <select name="class_name" onchange="change(this);">
                    
                    
                     <%
                    List doccollection = new ArrayList();
                    doccollection.add("Fixed Deposit");
                     doccollection.add("Credit Card");
                        for (int i =0; i <doccollection.size(); i++) {
                    %>
                    <option value="<%=i%>"><%=doccollection.get(i)%></option>
                    <%
                        }
                    %> 

                </select> <br /> 
            </p>
  

        </form>

        <h3> Document Collection </h3>
        <form name="test">
            <div>
                <label> <input type="checkbox" name="document" /> cifl FD Application.pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> cifl FD Disclosure.pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> fd Comm bank .pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> Asian Fin FD Disclosure.pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> cifl FD Application.pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> cifl FD Disclosure.pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> fd Comm bank .pdf </label>
            </div>

            <div>
                <label> <input type="checkbox" name="document" /> Asian Fin FD Disclosure.pdf </label>
            </div>        
            
        </form>

        <div class="buttonPos">

            <br/> Select Collection
            <a href="docSimilarity">
                <input type="submit" value="Next" name="next" />
            </a>
        </div>
    </div>
</div>
